package com.ruoyi.gzs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备管理对象 gzs_device
 * 
 * @author Liurenyi
 * @date 2022-06-29
 */
public class GzsDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备位置 */
    @Excel(name = "设备位置")
    private String location;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private Integer state;

    /** 最大阈值 */
    @Excel(name = "最大阈值")
    private String max;

    /** 最小阈值 */
    @Excel(name = "最小阈值")
    private String min;

    /** 区域归属地 */
    @Excel(name = "区域归属地")
    private Long areaid;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setMax(String max) 
    {
        this.max = max;
    }

    public String getMax() 
    {
        return max;
    }
    public void setMin(String min) 
    {
        this.min = min;
    }

    public String getMin() 
    {
        return min;
    }
    public void setAreaid(Long areaid) 
    {
        this.areaid = areaid;
    }

    public Long getAreaid() 
    {
        return areaid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("location", getLocation())
            .append("state", getState())
            .append("max", getMax())
            .append("min", getMin())
            .append("areaid", getAreaid())
            .toString();
    }
}
